package com.peas.platform.module.icims.base.approve.domain.impl;

import com.peas.platform.framework.mybatisplus.domain.BaseDomainImpl;
import com.peas.platform.framework.mybatisplus.repository.BaseRepository;
import com.peas.platform.module.icims.base.approve.adapter.repository.ApproveNodeRepository;
import com.peas.platform.module.icims.base.approve.adapter.repository.po.ApproveNodePo;
import com.peas.platform.module.icims.base.approve.domain.ApproveNodeDomain;
import com.peas.platform.module.icims.base.approve.dto.ApproveNodeDto;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ApproveNodeDomainImpl extends BaseDomainImpl<ApproveNodeDto, ApproveNodePo> implements ApproveNodeDomain {

    @Resource
    private ApproveNodeRepository approveNodeRepository;

    @Override
    public BaseRepository<ApproveNodePo> getMapper() {
        return approveNodeRepository;
    }

    @Override
    public Class<? extends BaseRepository<ApproveNodePo>> getRepositoryClass() {
        return ApproveNodeRepository.class;
    }

}
